package com.accelstack.cmp.repository;

import com.accelstack.cmp.entity.ContainerGpuMap;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 容器GPU映射Repository
 */
@Repository
public interface ContainerGpuMapRepository extends JpaRepository<ContainerGpuMap, Long> {
    
    /**
     * 根据容器ID查询GPU映射
     */
    List<ContainerGpuMap> findByContainerId(Long containerId);
    
    /**
     * 根据虚拟GPU ID查询映射
     */
    List<ContainerGpuMap> findByVirtualGpuId(Long virtualGpuId);
}

